package com.ruoyi.video.service.impl;

import com.ruoyi.video.domain.BusMemberStore;
import com.ruoyi.video.mapper.MemberStoreMapper;
import com.ruoyi.video.service.IMemberStoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MemberStoreServiceImpl implements IMemberStoreService {

    @Autowired
    private MemberStoreMapper memberStoreMapper;

    @Override
    public int insertMemberStore(BusMemberStore memberStore) {
        return memberStoreMapper.insertMemberStore(memberStore);
    }

    @Override
    public List<BusMemberStore>  selectMemberStore(Long videoId, String memberId) {
        return memberStoreMapper.selectMemberStore(videoId, memberId);
    }

    @Override
    public List<BusMemberStore> selectMemberStoreList(String memberId) {
        return memberStoreMapper.selectMemberStoreList(memberId);
    }

    @Override
    public int deleteMemberStoreById(Long videoId, String memberId) {
        return memberStoreMapper.deleteMemberStoreById(videoId, memberId);
    }
}
